<?php
include 'base.php';
$dataId = $_POST['dataId'];
$sql = "SELECT * FROM `goods` where `goods_id`='$dataId'";

$res = $conn->query($sql);


  $row = mysqli_fetch_assoc($res);


echo json_encode($row);